<?php 
	$content=$model;
	if($model->id==0){
		$contentmodule=ORM::factory('contentmodule',$this->input->get('contmod_id'));
		$hidden[$this->input->get('parent_column')]=$this->input->get('parent_id');
		$hidden['parent_col']=$this->input->get('parent_column');
		$hidden['position']=$this->input->get('position');
		$hidden['contentmodule_id']=$this->input->get('contmod_id');	
		$hidden['container']=$this->input->get('container');
		$hidden['lang']=$this->session->get('lang');
	}else{
		$contentmodule=$model->contentmodule;
	}
?>

<div class='contentheader'>Ein neues Element aus dem Modul <b><?=$contentmodule->title?></b> erstellen</div>
<?
if($model->id!=0){
	echo $formheader;
}
echo form::open(NULL, array(),$hidden);
echo form::open_fieldset();
eval ($contentmodule->form);
echo form::close_fieldset();

echo myform::submit();
echo form::close();
?>